/**
 *
 * @author cwy
 * @since 2022/2/10
 */
import Vue from 'vue'
import { login, logout, getSession } from '@/api/login'
import {
  EXPIRE,
  REFRESH_TOKEN,
  ACCESS_TOKEN,
  USER_NAME,
  USER_INFO,
  UI_CACHE_DB_DICT_DATA,
  USER_ID,
  USER_LOGIN_NAME,
  CACHE_INCLUDED_ROUTES
} from '@/store/mutation-types'
import { welcome } from '@/utils/util'
import { getUserSession, queryPermissionsByUser } from '@/api/api'
import { getAction } from '@/api/manage'

const globle = {
  state: {
    title: ''
  },

  mutations: {
    SET_TITLE: (state, title) => {
      state.title = title
    }
  },

  actions: {
    GlobleTitle({ commit }, title = 'ERP系统') {
      commit('SET_TITLE', title)
    }

  }
}

export default globle